/* ============================================
   AMIGO AUTOMATION, DARK MODE
   Brand-aligned: cinematic restraint, dark by default,
   one crimson CTA per screen.
   ============================================ */

:root {
  --void:        #0A0A12;
  --surface:     #111119;
  --deep-navy:   #1A1A2E;
  --steel-blue:  #0F3460;
  --crimson:     #E94560;
  --crimson-hover:#d63a53;
  --gold:        #C9A96E;
  --ice:         #A8C5DA;
  --bone:        #E8E6E1;
  --border:      rgba(232,230,225,0.08);
  --border-strong:rgba(232,230,225,0.14);
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --ease-reveal:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--bone);
  background: var(--void);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--crimson); color: var(--bone); }

/* ---- TOPBAR ----
   Harmonized with light-mode topbar so the theme transition is smooth.
   Matched: padding, font-size, letter-spacing, button shape, button padding.
   Only real difference: font family (JetBrains Mono for the subtle dark-mode signature).
*/
.topbar {
  background: #0B1C3D;
  color: rgba(232,230,225,0.75);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a {
  color: var(--gold);
  font-weight: 500;
  transition: opacity 0.2s;
}
.topbar a:hover { opacity: 0.8; }
.topbar-left,
.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.lang-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.78rem;
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover,
.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  opacity: 1 !important;
}
.lang-toggle .flag,
.theme-toggle .theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.theme-toggle .theme-icon {
  color: var(--gold);
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: border-color 0.4s var(--ease-smooth);
}
.navbar.scrolled {
  border-bottom-color: var(--border-strong);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--bone);
}
.logo-mark {
  width: 10px;
  height: 10px;
  background: var(--crimson);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  transition: color 0.3s var(--ease-smooth);
}
.nav-links a:hover { color: var(--bone); }
.nav-cta {
  color: var(--bone) !important;
  padding: 0.5rem 0.95rem !important;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}
.nav-cta:hover {
  border-color: var(--bone);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.3s;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  border: none;
  border-radius: 2px;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--crimson);
  color: var(--bone);
}
.btn-primary:hover {
  background: var(--crimson-hover);
}
.btn-full { width: 100%; display: block; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--bone);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
  cursor: pointer;
}
.btn-ghost:hover {
  border-bottom-color: var(--bone);
}
.btn-ghost span {
  transition: transform 0.3s var(--ease-smooth);
}
.btn-ghost:hover span {
  transform: translateX(4px);
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---- SECTIONS ---- */
.section { padding: 7rem 0; background: var(--void); }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
  padding: 0;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--bone);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--ice);
  max-width: 620px;
  margin-bottom: 4rem;
  line-height: 1.75;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background: var(--void);
  padding: 9rem 0 7rem;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 75% 40%, rgba(15, 52, 96, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(233, 69, 96, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--void) 0%, #0B0B15 100%);
  pointer-events: none;
}
.hero-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(233,69,96,0.4) 25%, rgba(233,69,96,0.4) 75%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ice);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s var(--ease-reveal) both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--bone);
  line-height: 1.05;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.9s 0.12s var(--ease-reveal) both;
}
.hero-accent {
  color: var(--ice);
  font-weight: 300;
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ice);
  max-width: 580px;
  margin-bottom: 3rem;
  line-height: 1.75;
  animation: fadeUp 0.9s 0.24s var(--ease-reveal) both;
}
.hero-actions {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4rem;
  animation: fadeUp 0.9s 0.36s var(--ease-reveal) both;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  animation: fadeUp 0.9s 0.48s var(--ease-reveal) both;
}
.trust-item {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  border-left: 1px solid var(--border);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(168, 197, 218, 0.6);
  margin-bottom: 0.5rem;
}
.trust-item strong {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.005em;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--void);
  padding: 2.5rem 2rem;
  transition: background 0.4s var(--ease-smooth);
  cursor: default;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  background: var(--surface);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(168, 197, 218, 0.45);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ice);
  line-height: 1.75;
}

/* ---- HOW IT WORKS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.step-card {
  padding: 3rem 2rem 2rem 0;
  border-right: 1px solid var(--border);
  transition: background 0.4s var(--ease-smooth);
}
.step-card:last-child { border-right: none; }
.step-card:not(:first-child) { padding-left: 2rem; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--crimson);
  margin-bottom: 1.5rem;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin-bottom: 0.75rem;
}
.step-card p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ice);
  line-height: 1.75;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: var(--ice);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat {
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat:not(:first-child) { padding-left: 1.5rem; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--bone);
  line-height: 1;
}
.stat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(168, 197, 218, 0.6);
  margin-top: 0.8rem;
  display: block;
  letter-spacing: 0.15em;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.about-card {
  background: var(--surface);
  padding: 3rem 2.5rem;
  max-width: 420px;
  border: 1px solid var(--border);
}
.about-card .section-label {
  color: var(--crimson);
  margin-bottom: 1.25rem;
}
.about-card h4 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.about-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ice);
  line-height: 1.75;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-sub {
  color: var(--ice);
  font-weight: 300;
  font-size: 1.02rem;
  margin-bottom: 3rem;
  line-height: 1.75;
}
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(168, 197, 218, 0.55);
}
.contact-item a, .contact-item span:last-child {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--bone);
}
.contact-item a:hover { color: var(--crimson); }

.contact-form-wrap {
  background: var(--void);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ice);
  letter-spacing: 0.2em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--bone);
  background: transparent;
  transition: border-color 0.3s var(--ease-smooth);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(168, 197, 218, 0.35);
  font-weight: 300;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--crimson);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23A8C5DA' stroke-width='1.2' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
}
.form-group select option {
  background: var(--surface);
  color: var(--bone);
}
.contact-form .btn {
  margin-top: 1rem;
}
.form-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ice);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--void);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(168, 197, 218, 0.55);
  letter-spacing: 0.12em;
}
.footer-tagline:nth-of-type(2) {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ice);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.25rem;
}
.footer-tagline a {
  color: var(--ice);
  transition: color 0.3s var(--ease-smooth);
}
.footer-tagline a:hover { color: var(--bone); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(168, 197, 218, 0.35);
  margin-top: 1rem;
  letter-spacing: 0.15em;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-reveal), transform 0.9s var(--ease-reveal);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps-grid { grid-template-columns: 1fr; border-top: none; }
  .step-card {
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
  }
  .step-card:not(:first-child) { padding-left: 0; }
  .about-visual { justify-content: flex-start; }
  .about-card { max-width: 100%; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .trust-item:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 768px) {
  .topbar { font-size: 0.62rem; justify-content: center; }
  .topbar-left, .topbar-right { gap: 0.75rem; }
  .navbar { padding: 0 1rem; height: 64px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--void);
    flex-direction: column;
    padding: 1.5rem 1.75rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 5rem 0 4rem; min-height: auto; }
  .hero-line { display: none; }
  .hero-actions { gap: 1.25rem; flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .about-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 1.25rem 0;
  }
  .stat:not(:first-child) { padding-left: 0; padding-top: 1.25rem; }
  .stat:last-child { border-bottom: none; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem; }
  .about-card { padding: 2rem 1.75rem; }
}

@media (max-width: 480px) {
  .hero-trust { grid-template-columns: 1fr; }
  .trust-item {
    border-left: none;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }
  .trust-item:last-child { border-bottom: none; }
  .topbar { flex-direction: column; text-align: center; gap: 0.4rem; }
}
